package com.kabongos.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.kabongos.activities.R.id;

public class JogadorActivity extends Activity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tela_jogadores);

        Button btJogadoresCadastrar = (Button) findViewById(id.btJogadoresCadastrar);
        Button btJOgadoresPesquisar = (Button) findViewById(id.btJogadorPesquisar);

        btJogadoresCadastrar.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent i = new Intent(getApplicationContext(), CadastroJogadorActivity.class);
                startActivity(i);
            }
        });

        btJOgadoresPesquisar.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent i = new Intent(getApplicationContext(), ListaJogadores.class);
                startActivity(i);

            }
        });
    }

}
